//
//  HJViewModel.h
//  project
//
//  Created by yefei on 2019/7/20.
//  Copyright © 2019 健健. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
typedef void(^successBlock)(void);
typedef void(^failureBlock)(NSString *error);

@interface HJViewModel : NSObject

/**
 总页码
 */
@property (nonatomic, strong) NSNumber * totalPage;
/**
 下拉加载接口
 @param success 成功 list 数据
 @param failure 失败
 */
- (void)refreshNewListWithSuccess:(void(^)(NSArray *list))success failure:(void(^)(NSString *error))failure;

/**
 上拉加载接口
 @param success 成功 list 数据
 @param failure 失败
 */
- (void)refreshMoreListWithSuccess:(void(^)(NSArray *list))success failure:(void(^)(NSString *error))failure;

/**
 点赞接口
 @param params 参数
 @param success 成功
 @param failure 失败
 */
-(void)loadPraiseDataWorkWithParams:(NSDictionary *)params Success:(successBlock)success failure:(failureBlock)failure;

/**
 获取评论接口
 @param params 参数
 @param sucess 成功
 @param failure 失败
 */
-(void)loadReViewDataWorkWithParams:(NSDictionary *)params Success:(void(^)(NSArray *list,NSString *totalPage))sucess failure:(failureBlock)failure;

/**
 动态评论接口
 @param params 参数
 @param success 成功
 @param failure 失败
 */
-(void)loadReviewSubMitDataWorkWithParams:(NSDictionary *)params success:(void(^)(id data))success failure:(failureBlock)failure;

/**
 关注按钮
 @param param 参数
 @param success 成功
 @param failure 失败
 */
-(void)loadConcernDataWithParams:(NSDictionary *)param success:(successBlock)success failure:(failureBlock)failure;

@end

NS_ASSUME_NONNULL_END
